package edu.ynu.se.xiecheng.achitectureclass.project.dao;

import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import edu.ynu.se.xiecheng.achitectureclass.project.po.entity.AirTemperatureData;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AirTemperatureDataDAO extends LogicDAO<AirTemperatureData,Long> {

    List<AirTemperatureData> findTop7ByOrderByTimestampDesc();

    AirTemperatureData findFirstByOrderByTimestampDesc();
}
